<?php
class userView extends View {

	function __construct(){
		parent::__construct();
	}

	public function showAddUser() {
		GLOBAL $USE_JSON;
		if($USE_JSON) {
			$this->setRenderType(VS_PLUGIN);
			$this->setTemplate('user/status_json.tpl');
		}
		else {
			$this->setTemplate('user/status.tpl');
		}
		$this->show();
	}

	public function showDeleteUser() {
		GLOBAL $USE_JSON;
		if($USE_JSON) {
			$this->setRenderType(VS_PLUGIN);
			$this->setTemplate('user/status_json.tpl');
		}
		else {
			$this->setTemplate('user/status.tpl');
		}
		$this->show();
	}

	public function showUpdateUser() {
		GLOBAL $USE_JSON;
		if($USE_JSON) {
			$this->setRenderType(VS_PLUGIN);
			$this->setTemplate('user/status_json.tpl');
		}
		else {
			$this->setTemplate('user/status.tpl');
		}
		$this->show();
	}

	public function showUsersList() {
		GLOBAL $USE_JSON;
		if($USE_JSON) {
			$this->setRenderType(VS_PLUGIN);
			$this->setTemplate('user/userslist_json.tpl');
		}
		else {
			$this->setTemplate('user/userslist.tpl');
		}

		$this->show();
	}

	public function showFullUsersList() {
		GLOBAL $USE_JSON;
		if($USE_JSON) {
			$this->setRenderType(VS_PLUGIN);
			$this->setTemplate('user/usersfulllist_json.tpl');
		}
		else {
			$this->setTemplate('user/usersfulllist.tpl');
		}

		$this->show();
	}

	public function showDeleteTaskImage() {
		GLOBAL $USE_JSON;
		if($USE_JSON) {
			$this->setRenderType(VS_PLUGIN);
			$this->setTemplate('user/status_json.tpl');
		}
		else {
			$this->setTemplate('user/status.tpl');
		}
		$this->show();
	}

	public function showUsersListByProject() {
		GLOBAL $USE_JSON;
		if($USE_JSON) {
			$this->setRenderType(VS_PLUGIN);
			$this->setTemplate('user/userslisttc_json.tpl');
		}
		else {
			$this->setTemplate('user/userslisttc.tpl');
		}

		$this->show();
	}

	public function showUserProfileWithPoints() {
		GLOBAL $USE_JSON;
		if($USE_JSON) {
			$this->setRenderType(VS_PLUGIN);
			$this->setTemplate('user/getprofilewithpoints_json.tpl');
		}
		else {
			$this->setTemplate('user/getprofilewithpoints.tpl');
		}

		$this->show();
	}

}
?>